package com.dick.base.session.dto;

import com.dick.base.util.ValidateMessageCodes;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
public class PasswordParameter {
    @NotEmpty(message = ValidateMessageCodes.PASSWORD_NOT_EMPTY)
    @Size(min = 6, max =128, message = ValidateMessageCodes.PASSWORD_SIZE)
    private String password;

    @NotEmpty(message = ValidateMessageCodes.PASSWORD_NOT_EMPTY)
    @Size(min = 6, max =128, message = ValidateMessageCodes.PASSWORD_SIZE)
    private String newPassword;
}
